import config from "@/config"
import http from "@/utils/request"
export default {
    material:{
        url: `${config.API_URL}/adminapi/material.shopMaterialStock/lists`,
        name: "物料库存",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    getBatch:{
        url: `${config.API_URL}/adminapi/material.shopMaterialStock/getMaterialBatchStock`,
        name: "查询物料缸号库存",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    batchStockDetail:{
        url: `${config.API_URL}/adminapi/material.shopMaterialStock/batchStockDetail`,
        name: "物料库存",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    BillDays:{
        url: `${config.API_URL}/adminapi/finance.BillDays/lists`,
        name: "日账单",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    BillDayDetail:{
        url: `${config.API_URL}/adminapi/finance.billMaster/dayDetail`,
        name: "日账单详情",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    deductionDetail:{
        url: `${config.API_URL}/adminapi/finance.billMaster/deductionDetail`,
        name: "扣款单详情",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    createStatementBill:{
        url: `${config.API_URL}/adminapi/finance.BillDays/createStatementBill`,
        name: "生成对账单",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
	},
    billMaster:{
        url: `${config.API_URL}/adminapi/finance.billMaster/lists`,
        name: "对账单",
        get: async function(data={}){
            return await http.get(this.url, data);
        }
	},
    payment:{
        url: `${config.API_URL}/adminapi/finance.billMaster/payment`,
        name: "付款",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
	},
    confirm:{
        url: `${config.API_URL}/adminapi/finance.billMaster/confirm`,
        name: "确认结算单",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
	},
    getDeduction: {
        lists:{
            url: `${config.API_URL}/adminapi/finance.BillDeduction/lists`,
            name: "获取扣款单列表",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        add: {
			url: `${config.API_URL}/adminapi/finance.BillDeduction/add`,
			name: "添加扣款单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/finance.BillDeduction/edit`,
			name: "编辑扣款单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/finance.BillDeduction/delete`,
			name: "删除扣款单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    // 客户日账单
    cum:{
        BillDays:{
            url: `${config.API_URL}/adminapi/finance.billCustomDays/lists`,
            name: "日账单",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        BillDayDetail:{
            url: `${config.API_URL}/adminapi/finance.billCustomMaster/dayDetail`,
            name: "日账单详情",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        deductionDetail:{
            url: `${config.API_URL}/adminapi/finance.billCustomMaster/deductionDetail`,
            name: "扣款单详情",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        createStatementBill:{
            url: `${config.API_URL}/adminapi/finance.billCustomDays/createStatementBill`,
            name: "生成对账单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        getDeduction: {
            lists:{
                url: `${config.API_URL}/adminapi/finance.BillDeduction/customLists`,
                name: "获取扣款单列表",
                get: async function(data={}){
                    return await http.get(this.url, data);
                }
            },
            add: {
                url: `${config.API_URL}/adminapi/finance.BillDeduction/addCustom`,
                name: "添加扣款单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            edit: {
                url: `${config.API_URL}/adminapi/finance.BillDeduction/editCustom`,
                name: "编辑扣款单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
            delete: {
                url: `${config.API_URL}/adminapi/finance.BillDeduction/deleteCustom`,
                name: "删除扣款单",
                post: async function(data={}){
                    return await http.post(this.url, data);
                }
            },
        },
        billMaster:{
            url: `${config.API_URL}/adminapi/finance.billCustomMaster/lists`,
            name: "对账单",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        out:{
            url: `${config.API_URL}/adminapi/finance.billMaster/export`,
            name: "工厂对账单导出",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        outcum:{
            url: `${config.API_URL}/adminapi/finance.billCustomMaster/export`,
            name: "客户对账单导出",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        payment:{
            url: `${config.API_URL}/adminapi/finance.billCustomMaster/payment`,
            name: "收款",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        confirm:{
            url: `${config.API_URL}/adminapi/finance.billCustomMaster/confirm`,
            name: "确认结算单",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
    },
    staffSalary:{
        list:{
            url: `${config.API_URL}/adminapi/finance.staffSalary/staffList`,
            name: "员工工资列表",
            get: async function(params){
				return await http.get(this.url, params);
			}
        },
        detail:{
            url: `${config.API_URL}/adminapi/finance.staffSalary/lists`,
            name: "员工工资明细",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        input:{
            url: `${config.API_URL}/adminapi/finance.staffSalary/inputSalary`,
            name: "工资录入",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        grant:{
            url: `${config.API_URL}/adminapi/finance.staffSalary/salaryGrant`,
            name: "工资发放",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        piece:{
            url: `${config.API_URL}/adminapi/finance.staffSalary/pieceLists`,
            name: "计件工资明细",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        time:{
            url: `${config.API_URL}/adminapi/finance.staffSalary/timingLists`,
            name: "计时工资明细",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
        pieceDay:{
            url: `${config.API_URL}/adminapi/finance.staffSalary/dayLists`,
            name: "计件明细某天",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
    },
    staffDeduc:{
        lists:{
            url: `${config.API_URL}/adminapi/shop.staffDeductionType/lists`,
            name: "工资扣款类型列表",
            get: async function(params){
				return await http.get(this.url, params);
			}
        },
        add:{
            url: `${config.API_URL}/adminapi/shop.staffDeductionType/add`,
            name: "新增",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        edit:{
            url: `${config.API_URL}/adminapi/shop.staffDeductionType/edit`,
            name: "编辑",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        delete:{
            url: `${config.API_URL}/adminapi/shop.staffDeductionType/delete`,
            name: "删除",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        salaryExport:{
            url: `${config.API_URL}/adminapi/finance.staffSalary/salaryExport`,
            name: "导出工资表",
            get: async function(data={}){
                return await http.get(this.url, data);
            }
        },
    },
}